package com.baiyimi.pan.server.controller;


import com.baiyimi.pan.server.service.ResourceService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("resourceController")
public class ResourceController {
    @Resource
    private ResourceService rs;// 资源相关的服务层，详见具体实现

    /**
     * 获取公告新的的MD5，如果没有公告信息，则返回null
     *
     * @return
     */
    @RequestMapping("/getNoticeMD5.ajax")
    public String getNoticeMD5() {
        return rs.getNoticeMD5();
    }
}
